package com.peenongsaban.freelance.action;

import com.opensymphony.xwork2.ActionSupport;
import com.peenongsaban.freelance.model.HomePageModel;
import com.peenongsaban.freelance.service.HomePageSerivce;

public class HomePageAction extends ActionSupport{
	private static final long serialVersionUID = 1L;
	private HomePageModel model;
	
	public String showIndexPage(){
		HomePageSerivce service = new HomePageSerivce();
		model.setListAptitubeType(service.getListAptitudeType());
		model.setListJobMostPoppular(service.getListJobMostPopular());
		model.setListJobUrgent(service.getListJobUrgent());
		model.setListServiceMostPopular(service.getListServiceMostPopular());
		return SUCCESS;
	}
	public HomePageModel getModel() {
		return model;
	}
	public void setModel(HomePageModel model) {
		this.model = model;
	}
	
	
}
